package com.zhouchao.dubbo.filter;

import com.google.common.cache.Cache;
import org.apache.dubbo.common.extension.SPI;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author: zhouchao
 * @Date: 2021/09/19 22:30
 * @Description:
 */
@SPI
public interface TPMonitorFilter {
    ConcurrentHashMap<String, Cache<Long, Long>> monitor = new ConcurrentHashMap<>();

    void serviceReport(String serviceName, Long time);

    Long getTP99(String serviceName);

    Long getTP90(String serviceName);
}
